<gm:page title="Real Estate Mashup">

  <h1>Federal Register Browser</h1>  
  
  <form>
    <select id="frbAgency">
      <option value="Agency for International Development">Agency for International Development</option>
      <option value="Agriculture Department">Agriculture Department</option>
      <option value="Animal and Plant Health Inspection Service">Animal and Plant Health Inspection Service</option>
      <option value="Army Department">Army Department</option>
      <option value="Centers for Medicare and Medicaid Services">Centers for Medicare and Medicaid Services</option>
      <option value="Civil Rights Commission">Civil Rights Commission</option>
      <option value="Committee for Purchase From People Who Are Blind or Severely Disabled">Committee for Purchase From People Who Are Blind or Severely Disabled</option>
      <option value="Commodity Futures Trading Commission">Commodity Futures Trading Commission</option>
      <option value="Defense Department">Defense Department</option>
      <option value="Disability Employment Policy Office">Disability Employment Policy Office</option>
      <option value="Education Department">Education Department</option>
      <option value="Employment Standards Administration">Employment Standards Administration</option>
      <option value="Energy Department">Energy Department</option>
      <option value="Engineers Corps">Engineers Corps</option>
      <option value="Environmental Protection Agency">Environmental Protection Agency</option>
      <option value="Federal Aviation Administration">Federal Aviation Administration</option>
      <option value="Federal Communications Commission">Federal Communications Commission</option>
      <option value="Federal Election Commission">Federal Election Commission</option>
      <option value="Federal Energy Regulatory Commission">Federal Energy Regulatory Commission</option>
      <option value="Federal Motor Carrier Safety Administration">Federal Motor Carrier Safety Administration</option>
      <option value="Federal Railroad Administration">Federal Railroad Administration</option>
      <option value="Federal Reserve System">Federal Reserve System</option>
      <option value="Fiscal Service">Fiscal Service</option>
      <option value="Fish and Wildlife Service">Fish and Wildlife Service</option>
      <option value="Food and Drug Administration">Food and Drug Administration</option>
      <option value="Forest Service">Forest Service</option>
      <option value="General Services Administration">General Services Administration</option>
      <option value="Grain Inspection, Packers and Stockyards Administration">Grain Inspection, Packers and Stockyards Administration</option>
      <option value="Housing and Urban Development Department">Housing and Urban Development Department</option>
      <option value="Indian Health Service">Indian Health Service</option>
      <option value="Industry and Security Bureau">Industry and Security Bureau</option>
      <option value="Internal Revenue Service">Internal Revenue Service</option>
      <option value="International Trade Administration">International Trade Administration</option>
      <option value="Land Management Bureau">Land Management Bureau</option>
      <option value="Legal Services Corporation">Legal Services Corporation</option>
      <option value="Maritime Administration">Maritime Administration</option>
      <option value="Minerals Management Service">Minerals Management Service</option>
      <option value="National Highway Traffic Safety Administration">National Highway Traffic Safety Administration</option>
      <option value="National Institute of Standards and Technology">National Institute of Standards and Technology</option>
      <option value="National Institutes of Health">National Institutes of Health</option>
      <option value="National Oceanic and Atmospheric Administration">National Oceanic and Atmospheric Administration</option>
      <option value="National Telecommunications and Information Administration">National Telecommunications and Information Administration</option>
      <option value="Navy Department">Navy Department</option>
      <option value="Nuclear Regulatory Commission">Nuclear Regulatory Commission</option>
      <option value="Occupational Safety and Health Administration">Occupational Safety and Health Administration</option>
      <option value="Pipeline and Hazardous Materials Safety Administration">Pipeline and Hazardous Materials Safety Administration</option>
      <option value="Postal Regulatory Commission">Postal Regulatory Commission</option>
      <option value="Presidential Documents">Presidential Documents</option>
      <option value="Securities and Exchange Commission">Securities and Exchange Commission</option>
      <option value="Small Business Administration">Small Business Administration</option>
      <option value="Surface Transportation Board">Surface Transportation Board</option>
      <option value="Treasury Department">Treasury Department</option>
      <option value="United States Mint">United States Mint</option>
    </select>
  <select id="frbType">
      <option value="Notices">Notices</option>
      <option value="Proposed Rules">Proposed Rules</option>
      <option value="Rules">Rules</option>
      <option value="Administrative Orders">Administrative Orders</option>
      <option value="Executive Orders">Executive Orders</option>
  </select>

  <gm:search id="search" data="${base}" hint="Enter search term">
    <gm:param name="item type" value="Federal Register"/>
    <gm:handleEvent event="submit" execute="google.mashups.getObjectById('search').setParam('Agency', document.getElementById('frbAgency').value)"/>
  </gm:search>
</form>
      
  <gm:list id="myList" data="${search}" template="myTemplate" height="400px">
  </gm:list>
   
  <gm:template id="myTemplate">
    <table style="width: 100%">
      <tr repeat="true">
        <td>
          <gm:text ref="atom:title"/>
        </td>
        <td align="right">
          <gm:image ref="g:image_link" width="80" height="60" mode="fill"/>
        </td>
      </tr>
    </table>
  </gm:template>
  
  <gm:template id="infoTemplate">
    <gm:text ref="atom:title"/>
    <gm:image ref="g:image_link" width="200" height="150"/>
    Price: <gm:text ref="g:price"/>
    <gm:textarea ref="gmd:notes"/>
    <gm:editButtons text="true"/>
  </gm:template> 
  
</gm:page>


  
  

